---@type string
local addonName = select(1, ...)
---@class AE_Addon
local addon = select(2, ...)

---@class AE_Constants
addon.Constants = {
  prefix = format("<%s> ", addonName),
  media = {
    WhiteSquare = "Interface/BUTTONS/WHITE8X8",
    Logo = format("Interface/AddOns/%s/Media/Logo.blp", addonName),
    LogoTransparent = format("Interface/AddOns/%s/Media/LogoTransparent.blp", addonName),
    IconClose = format("Interface/AddOns/%s/Media/Icon_Close.blp", addonName),
    IconSettings = format("Interface/AddOns/%s/Media/Icon_Settings.blp", addonName),
    IconSorting = format("Interface/AddOns/%s/Media/Icon_Sorting.blp", addonName),
    IconCharacters = format("Interface/AddOns/%s/Media/Icon_Characters.blp", addonName),
    IconAnnounce = format("Interface/AddOns/%s/Media/Icon_Announce.blp", addonName),
    IconKeyhole = format("Interface/AddOns/%s/Media/Icon_Keyhole.blp", addonName),
  },
  sizes = {
    padding = 8,
    row = 22,
    column = 100,
    border = 4,
    titlebar = {
      height = 30,
    },
    footer = {
      height = 16,
    },
    sidebar = {
      width = 150,
      collapsedWidth = 30,
    },
  },
  sortingOptions = {
    {value = "lastUpdate",  text = "最近游玩"},
    {value = "name.asc",    text = "角色名 (A-Z)"},
    {value = "name.desc",   text = "角色名 (Z-A)"},
    {value = "realm.asc",   text = "服务器 (A-Z)"},
    {value = "realm.desc",  text = "服务器 (Z-A)"},
    {value = "class.asc",   text = "职业 (A-Z)"},
    {value = "class.desc",  text = "职业 (Z-A)"},
    {value = "ilvl.asc",    text = "物品等级 (最低)"},
    {value = "ilvl.desc",   text = "物品等级 (最高)"},
    {value = "rating.asc",  text = "分数 (最低)"},
    {value = "rating.desc", text = "分数 (最高)"},
    {value = "custom",      text = "自定义顺序",        tooltipTitle = "自己调整顺序", tooltipText = "把鼠标放在角色名处以调整顺序"},
  },
}
